Skip to content

hpke: add missing ForceZero for eae_prk, key_schedule_context, secret.#9894

Merged
douzzer merged 1 commit intowolfSSL:masterfrom
philljj:fix_f_280
Mar 10, 2026
Merged

hpke: add missing ForceZero for eae_prk, key_schedule_context, secret.#9894
douzzer merged 1 commit intowolfSSL:masterfrom
philljj:fix_f_280

Conversation

@philljj
Copy link
Contributor

@philljj philljj commented Mar 5, 2026

Description

hpke: add missing ForceZero for eae_prk, key_schedule_context, secret.

Fixes F-280.

@philljj philljj self-assigned this Mar 5, 2026
Copilot AI review requested due to automatic review settings March 5, 2026 21:34
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Adds explicit zeroization of HPKE intermediate secrets before freeing to reduce sensitive data lifetime in memory (Fixes F-280).

Changes:

  • Zeroize eae_prk after use in wc_HpkeExtractAndExpand.
  • Zeroize key_schedule_context and secret before freeing in wc_HpkeKeyScheduleBase.
  • Minor control-flow formatting change (adds braces) around the ret == 0 block.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@philljj philljj added the For This Release Release version 5.9.0 label Mar 6, 2026
@philljj
Copy link
Contributor Author

philljj commented Mar 6, 2026

Retest this please.

1 similar comment
@philljj
Copy link
Contributor Author

philljj commented Mar 7, 2026

Retest this please.

@philljj philljj assigned wolfSSL-Bot and unassigned philljj Mar 7, 2026
@douzzer douzzer added the Staged Staged for merge pending final test results and review label Mar 9, 2026
@douzzer douzzer merged commit cd2386c into wolfSSL:master Mar 10, 2026
456 of 457 checks passed
@philljj philljj deleted the fix_f_280 branch March 10, 2026 17:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

For This Release Release version 5.9.0 Staged Staged for merge pending final test results and review

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants